package com.fc.advbox.dto.equipment;

import com.fc.advbox.dto.BasePage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.beanutils.BeanMap;

import java.util.Date;
import java.util.Map;

/**
 * Created by E7450 on 2018/6/22.
 */
@Getter
@Setter
public class QueryEquipmentRequest extends BasePage {
    @ApiModelProperty(value = "code")
    private String code;   // 设备编码
    @ApiModelProperty(value = "name")
    private String name;   // 设备名称
    @ApiModelProperty(value = "type")
    private String type;   // 类型
    @ApiModelProperty(value = "city")
    private String city;   // 城市
    @ApiModelProperty(value = "district")
    private String district; // 区域
    @ApiModelProperty(value = "status")
    private String status;   // 状态
//    private Date buildDate;
    @ApiModelProperty(value = "tenantId")
    private Long tenantId; // 租户ID
    @ApiModelProperty(value = "hasAgent")
    private String hasAgent; // 是否已经有代理商
    @ApiModelProperty(value = "hasChannel")
    private String hasChannel; // 是否已经有渠道商

    public Map toMap()
    {
        return new BeanMap(this);
    }
}
